
<%@ page import="auctionatr.Bid"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="layout" content="main" />
<g:set var="entityName"
	value="${message(code: 'bid.label', default: 'Bid')}" />
<title><g:message code="auction.anzeigen.label"
		args="[entityName]" />
</title>
</head>
<body>

	<div class="body">
		<h1>
			<g:message code="bid.anzeigen.label" />
		</h1>
		<g:if test="${flash.message}">
			<div class="message">
				${flash.message}
			</div>
		</g:if>
		<div class="dialog">
			<table>
				<tbody>


					<tr class="prop">
						<td valign="top" class="name"><g:message
								code="bid.gebot.label" default="Gebot" />
						</td>

						<td valign="top" class="value">
						<g:formatNumber number="${bidInstance.gebot}" type="currency" currencyCode="EUR" />
						
						</td>

					</tr>

					<tr class="prop">
						<td valign="top" class="name"><g:message
								code="auction.name.label" default="Auctions" />
						</td>

						<td valign="top" class="value"><g:link controller="auction"
								action="show" id="${bidInstance?.auctions?.id}">
								${bidInstance?.auctions?.encodeAsHTML()}
							</g:link>
						</td>

					</tr>

					<tr class="prop">
						<td valign="top" class="name"><g:message
								code="bid.dateCreated.label" default="Date Created" />
						</td>

						<td valign="top" class="value"><g:formatDate format="${message(code: 'default.date.format', default: 'DateFormat')}"
								date="${bidInstance?.dateCreated}" />
						</td>

					</tr>

				</tbody>
			</table>
		</div>
		<g:if test="${session?.admin == true }">
			<div class="buttons">
				<g:form>
					<g:hiddenField name="id" value="${bidInstance?.id}" />
					<span class="button"><g:actionSubmit class="delete"
							action="delete"
							value="${message(code: 'default.button.delete.label', default: 'Delete')}"
							onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
					</span>
				</g:form>
			</div>
		</g:if>
	</div>
</body>
</html>
